package com.wf.messageBoard.service.call.impl;

import com.wf.apicommons.entity.MessageBoard.LeavingAMessage;
import com.wf.apicommons.entity.MessageBoard.MqMessage;
import com.wf.apicommons.utils.CodeEnum;
import com.wf.apicommons.utils.CommonResult;
import com.wf.messageBoard.service.call.ChatFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description: 服务降级处理类
 */
@Slf4j
@Component
public class FeignFallbackServiceImpl  implements ChatFeignService {


    /**
     * 推送聊天消息
     * @param message
     * @return
     */
    @Override
    public CommonResult<String> pushLeavingAMessageData(String message) {
        log.info("调用chat-management-services服务失败，已降级处理");
        return CommonResult.fail(CodeEnum.SERVICE_CALL_EXCEPTION);
    }
}
